package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单详情表
 */
@ApiModel(description="订单详情表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order_detail")
public class OrderDetail {
    /**
     * 订单详情id
     */
    @TableId(value = "id")
    @ApiModelProperty(value="订单详情id")
    private String id;

    /**
     * 用户表PK
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户表PK")
    private String userId;

    /**
     * 订单表pk
     */
    @TableField(value = "order_id")
    @ApiModelProperty(value="订单表pk")
    private String orderId;


    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private String storeId;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value="商品id")
    private String productId;

    /**
     * 商品规格id
     */
    @TableField(value = "product_spec_id")
    @ApiModelProperty(value="商品规格id")
    private String productSpecId;

    /**
     * 商品规格
     */
    @TableField(value = "product_spec")
    @ApiModelProperty(value="商品规格")
    private String productSpec;

    /**
     * 商品名
     */
    @TableField(value = "product_name")
    @ApiModelProperty(value="商品名")
    private String productName;

    /**
     * 商品单价
     */
    @TableField(value = "product_price")
    @ApiModelProperty(value="商品单价")
    private BigDecimal productPrice;

    /**
     * 商品图片
     */
    @TableField(value = "product_img")
    @ApiModelProperty(value="商品图片")
    private String productImg;

    /**
     * 商品数量
     */
    @TableField(value = "product_count")
    @ApiModelProperty(value="商品数量")
    private Integer productCount;

    /**
     * 是否删除（0=否，1=是）
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除（0=否，1=是）")
    private String isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="修改时间")
    private Date updateTime;


}
